package com.kimehwa.studyboot.bean.learnspring;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

/**
 * @author xiaodongguan
 * @description
 * @since 2021-08-26 10:19
 */
public class Cat implements InitializingBean, DisposableBean {
    public Cat(){
        System.out.println("cat constructor....");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("cat destroy....");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("cat afterPropertiesSet.....");
    }
}
